package com.spring.demo.core.event;

import org.springframework.context.ApplicationListener;

/**
 * 会员保存后，发送邮件
 * 
 * @author sean
 *
 */
public class MemberSaveEmailSender implements
		ApplicationListener<MemberSaveEmail> {

	@Override
	public void onApplicationEvent(MemberSaveEmail event) {
		System.out.println("会员 " + event.getMember().getName() + " 保存成功后，发送邮件！");
	}

}
